<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<title>ServoCtrl: src/DOGSdisplay.h File Reference</title>

<link href="tabs.css" rel="stylesheet" type="text/css"/>
<link href="doxygen.css" rel="stylesheet" type="text/css" />

<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<script type="text/javascript">
  $(document).ready(function() { searchBox.OnSelectItem(0); });
</script>

</head>
<body>
<div id="top"><!-- do not remove this div! -->


<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  
  
  <td style="padding-left: 0.5em;">
   <div id="projectname">ServoCtrl
   
   </div>
   
  </td>
  
  
  
 </tr>
 </tbody>
</table>
</div>

<!-- Generated by Doxygen 1.8.0 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "search",false,'Search');
</script>
  <div id="navrow1" class="tabs">
    <ul class="tablist">
      <li><a href="index.html"><span>Main&#160;Page</span></a></li>
      <li><a href="modules.html"><span>Modules</span></a></li>
      <li><a href="annotated.html"><span>Data&#160;Structures</span></a></li>
      <li class="current"><a href="files.html"><span>Files</span></a></li>
      <li>
        <div id="MSearchBox" class="MSearchBoxInactive">
        <span class="left">
          <img id="MSearchSelect" src="search/mag_sel.png"
               onmouseover="return searchBox.OnSearchSelectShow()"
               onmouseout="return searchBox.OnSearchSelectHide()"
               alt=""/>
          <input type="text" id="MSearchField" value="Search" accesskey="S"
               onfocus="searchBox.OnSearchFieldFocus(true)" 
               onblur="searchBox.OnSearchFieldFocus(false)" 
               onkeyup="searchBox.OnSearchFieldChange(event)"/>
          </span><span class="right">
            <a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a>
          </span>
        </div>
      </li>
    </ul>
  </div>
  <div id="navrow2" class="tabs2">
    <ul class="tablist">
      <li><a href="files.html"><span>File&#160;List</span></a></li>
      <li><a href="globals.html"><span>Globals</span></a></li>
    </ul>
  </div>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
<a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(0)"><span class="SelectionMark">&#160;</span>All</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(1)"><span class="SelectionMark">&#160;</span>Data Structures</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(2)"><span class="SelectionMark">&#160;</span>Files</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(3)"><span class="SelectionMark">&#160;</span>Functions</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(4)"><span class="SelectionMark">&#160;</span>Variables</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(5)"><span class="SelectionMark">&#160;</span>Typedefs</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(6)"><span class="SelectionMark">&#160;</span>Enumerations</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(7)"><span class="SelectionMark">&#160;</span>Enumerator</a></div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

</div>
<div class="header">
  <div class="summary">
<a href="#define-members">Defines</a> &#124;
<a href="#func-members">Functions</a> &#124;
<a href="#var-members">Variables</a>  </div>
  <div class="headertitle">
<div class="title">src/DOGSdisplay.h File Reference</div>  </div>
</div><!--header-->
<div class="contents">

<p>LCD driver module for EA DOG-S 102x64.  
<a href="#details">More...</a></p>
<div class="textblock"><code>#include &quot;typedefs.h&quot;</code><br/>
<code>#include &quot;type.h&quot;</code><br/>
<code>#include &quot;application.h&quot;</code><br/>
<code>#include &quot;font_6x8.h&quot;</code><br/>
<code>#include &quot;font_5x6.h&quot;</code><br/>
</div>
<p><a href="_d_o_g_sdisplay_8h_source.html">Go to the source code of this file.</a></p>
<table class="memberdecls">
<tr><td colspan="2"><h2><a name="define-members"></a>
Defines</h2></td></tr>
<tr class="memitem:a682b4fe46a03e2d95b5d26dff7b3a68f"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a682b4fe46a03e2d95b5d26dff7b3a68f"></a>
#define&#160;</td><td class="memItemRight" valign="bottom"><b>XPIXEL</b>&#160;&#160;&#160;132</td></tr>
<tr class="memitem:aa5e552f7766510b0f50437c22af7db27"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="aa5e552f7766510b0f50437c22af7db27"></a>
#define&#160;</td><td class="memItemRight" valign="bottom"><b>YPIXEL</b>&#160;&#160;&#160;32</td></tr>
<tr class="memitem:a0312cb6d6cbc719075d4e5380c387ab3"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a0312cb6d6cbc719075d4e5380c387ab3"></a>
#define&#160;</td><td class="memItemRight" valign="bottom"><b>XMAX</b>&#160;&#160;&#160;XPIXEL-1</td></tr>
<tr class="memitem:a610d6ad95b18966b70b6845de2a9c56b"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a610d6ad95b18966b70b6845de2a9c56b"></a>
#define&#160;</td><td class="memItemRight" valign="bottom"><b>YMAX</b>&#160;&#160;&#160;YPIXEL-1</td></tr>
<tr class="memitem:abbbe5949f3c1f72e439924f8cf503509"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="abbbe5949f3c1f72e439924f8cf503509"></a>
#define&#160;</td><td class="memItemRight" valign="bottom"><b>DELETE</b>&#160;&#160;&#160;0</td></tr>
<tr class="memitem:a97fe5470fb1ac167c713671655ff3e52"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a97fe5470fb1ac167c713671655ff3e52"></a>
#define&#160;</td><td class="memItemRight" valign="bottom"><b>ADD</b>&#160;&#160;&#160;1</td></tr>
<tr class="memitem:a2ee37b3bb057823bca7726430f262a39"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a2ee37b3bb057823bca7726430f262a39"></a>
#define&#160;</td><td class="memItemRight" valign="bottom"><b>INVERS</b>&#160;&#160;&#160;2</td></tr>
<tr class="memitem:aa0021d3209af08afebac31d5ab0d6cae"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="aa0021d3209af08afebac31d5ab0d6cae"></a>
#define&#160;</td><td class="memItemRight" valign="bottom"><b>lcd_send_command</b>(data)&#160;&#160;&#160;writeCommand(data)</td></tr>
<tr class="memitem:ae1aebf742a84bf7f327de473513302e9"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="ae1aebf742a84bf7f327de473513302e9"></a>
#define&#160;</td><td class="memItemRight" valign="bottom"><b>lcd_send_data</b>(data)&#160;&#160;&#160;writeData(data)</td></tr>
<tr class="memitem:aeb7ee06e5a1d109e4bc0fd84f9609845"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="aeb7ee06e5a1d109e4bc0fd84f9609845"></a>
#define&#160;</td><td class="memItemRight" valign="bottom"><b>lcd_clear_all</b>()&#160;&#160;&#160;lcd_clear(0,0,XPIXEL-1,YPIXEL-1)</td></tr>
<tr class="memitem:adcdde1fef7027aaa7bda08367a997509"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="adcdde1fef7027aaa7bda08367a997509"></a>
#define&#160;</td><td class="memItemRight" valign="bottom"><b>lcd_fill_all</b>()&#160;&#160;&#160;<a class="el" href="_d_o_g_sdisplay_8h.html#a87513b447ef5799762a37fb90180e142">lcd_fill</a>(0,0,XPIXEL-1,YPIXEL-1)</td></tr>
<tr class="memitem:af77a733e352a88a872cb8e1ed4532706"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="af77a733e352a88a872cb8e1ed4532706"></a>
#define&#160;</td><td class="memItemRight" valign="bottom"><b>pgm_read_byte</b>(adr)&#160;&#160;&#160;*(adr)</td></tr>
<tr><td colspan="2"><h2><a name="func-members"></a>
Functions</h2></td></tr>
<tr class="memitem:a6842775ba83d166f02b8fef8bb63b1e6"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a6842775ba83d166f02b8fef8bb63b1e6"></a>
void&#160;</td><td class="memItemRight" valign="bottom"><b>lcd_init</b> (void)</td></tr>
<tr class="memitem:ae7bbf53c2f94a9e03a64fa1f34382bea"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="ae7bbf53c2f94a9e03a64fa1f34382bea"></a>
void&#160;</td><td class="memItemRight" valign="bottom"><b>lcd_send</b> (uint8_t data, uint8_t cd)</td></tr>
<tr class="memitem:ad549f3ddde6fa08201b7cb4a1b29372f"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="ad549f3ddde6fa08201b7cb4a1b29372f"></a>
void&#160;</td><td class="memItemRight" valign="bottom"><b>lcd_clear</b> (uint8_t xs, uint8_t ys, uint8_t xe, uint8_t ye)</td></tr>
<tr class="memitem:a87513b447ef5799762a37fb90180e142"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="_d_o_g_sdisplay_8h.html#a87513b447ef5799762a37fb90180e142">lcd_fill</a> (uint8_t xs, uint8_t ys, uint8_t xe, uint8_t ye)</td></tr>
<tr class="memitem:a1598a393a2c7cbc2537e3d5ff42919cb"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a1598a393a2c7cbc2537e3d5ff42919cb"></a>
void&#160;</td><td class="memItemRight" valign="bottom"><b>lcd_plot</b> (uint8_t x, uint8_t y)</td></tr>
<tr class="memitem:a88c4fc5d91b19afca089e9985affb2c7"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a88c4fc5d91b19afca089e9985affb2c7"></a>
void&#160;</td><td class="memItemRight" valign="bottom"><b>lcd_line</b> (uint8_t xs, uint8_t ys, uint8_t xe, uint8_t ye)</td></tr>
<tr class="memitem:a890ed4d4bd4212f230c740065d90a79c"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a890ed4d4bd4212f230c740065d90a79c"></a>
void&#160;</td><td class="memItemRight" valign="bottom"><b>lcd_rect</b> (uint8_t xs, uint8_t ys, uint8_t xe, uint8_t ye)</td></tr>
<tr class="memitem:a44e0061a3edee94cd59d1b3699cb88cf"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a44e0061a3edee94cd59d1b3699cb88cf"></a>
void&#160;</td><td class="memItemRight" valign="bottom"><b>lcd_char</b> (uint8_t x, uint8_t y, uint8_t data, uint8_t *font, uint8_t linkmode)</td></tr>
<tr class="memitem:a4c051a7c2c05dd0ac3b4e70836bbc678"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a4c051a7c2c05dd0ac3b4e70836bbc678"></a>
void&#160;</td><td class="memItemRight" valign="bottom"><b>lcd_string</b> (uint8_t x, uint8_t y, char *data, uint8_t *font, uint8_t linkmode)</td></tr>
<tr class="memitem:ae659b6e4505f00f868b272254ab2f348"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="ae659b6e4505f00f868b272254ab2f348"></a>
void&#160;</td><td class="memItemRight" valign="bottom"><b>initDogs</b> (void)</td></tr>
<tr class="memitem:acf062a6e2fa3fd76cc3f5870ec87af62"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="acf062a6e2fa3fd76cc3f5870ec87af62"></a>
void&#160;</td><td class="memItemRight" valign="bottom"><b>writeCommand</b> (uint8_t data)</td></tr>
<tr class="memitem:a0b7f79fe8ba1e0df0ea9a0b86d22a7f5"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a0b7f79fe8ba1e0df0ea9a0b86d22a7f5"></a>
void&#160;</td><td class="memItemRight" valign="bottom"><b>writeData</b> (uint8_t data)</td></tr>
<tr class="memitem:a6c4ec83b10ae31998a219499c58b8591"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a6c4ec83b10ae31998a219499c58b8591"></a>
void&#160;</td><td class="memItemRight" valign="bottom"><b>lcd_write_U08</b> (uint8_t x, uint8_t y, uint8_t value, uint8_t digits)</td></tr>
<tr class="memitem:ad61fbd87c818615ef0b338db24e7cf44"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="ad61fbd87c818615ef0b338db24e7cf44"></a>
void&#160;</td><td class="memItemRight" valign="bottom"><b>lcd_write_U08_hex</b> (uint8_t x, uint8_t y, uint8_t value)</td></tr>
<tr class="memitem:a79d3fe1005322c0a21113eb600907194"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a79d3fe1005322c0a21113eb600907194"></a>
void&#160;</td><td class="memItemRight" valign="bottom"><b>lcd_write_U08_bin</b> (uint8_t x, uint8_t y, uint8_t value)</td></tr>
<tr class="memitem:a01264225bc39f1e17c18e78f69647585"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a01264225bc39f1e17c18e78f69647585"></a>
void&#160;</td><td class="memItemRight" valign="bottom"><b>lcd_write_S08</b> (uint8_t x, uint8_t y, int8_t value, uint8_t digits)</td></tr>
<tr class="memitem:a991a6c9c6b98376847620f356633c642"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a991a6c9c6b98376847620f356633c642"></a>
void&#160;</td><td class="memItemRight" valign="bottom"><b>lcd_write_U16</b> (uint8_t x, uint8_t y, uint16_t value, uint8_t digits)</td></tr>
<tr class="memitem:a755a4207b0978cda683df9c4a0630bed"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a755a4207b0978cda683df9c4a0630bed"></a>
void&#160;</td><td class="memItemRight" valign="bottom"><b>lcd_write_U16_hex</b> (uint8_t x, uint8_t y, uint16_t value)</td></tr>
<tr class="memitem:a3d6f3e207622cee9e4471e01f9e72a2e"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a3d6f3e207622cee9e4471e01f9e72a2e"></a>
void&#160;</td><td class="memItemRight" valign="bottom"><b>lcd_write_U16_bin</b> (uint8_t x, uint8_t y, uint16_t value)</td></tr>
<tr class="memitem:a18630e9f7bc1ff36960b2e218c817780"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a18630e9f7bc1ff36960b2e218c817780"></a>
void&#160;</td><td class="memItemRight" valign="bottom"><b>lcd_write_S16</b> (uint8_t x, uint8_t y, int16_t value, uint8_t digits)</td></tr>
<tr class="memitem:a4867662490b05985769bd05c94841ff7"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a4867662490b05985769bd05c94841ff7"></a>
void&#160;</td><td class="memItemRight" valign="bottom"><b>lcd_write_U32</b> (uint8_t x, uint8_t y, uint32_t value, uint8_t digits)</td></tr>
<tr class="memitem:ae5539d67fbcd72d56934e2b2168aaa15"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="ae5539d67fbcd72d56934e2b2168aaa15"></a>
void&#160;</td><td class="memItemRight" valign="bottom"><b>lcd_write_U32_hex</b> (uint8_t x, uint8_t y, uint32_t value)</td></tr>
<tr class="memitem:a8f60c8428b63424f298fe2901360afac"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a8f60c8428b63424f298fe2901360afac"></a>
void&#160;</td><td class="memItemRight" valign="bottom"><b>lcd_write_U32_bin</b> (uint8_t x, uint8_t y, uint32_t value)</td></tr>
<tr class="memitem:a74f421fe020d6d795721c75a1ef0de3c"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a74f421fe020d6d795721c75a1ef0de3c"></a>
void&#160;</td><td class="memItemRight" valign="bottom"><b>lcd_write_S32</b> (uint8_t x, uint8_t y, int32_t value, uint8_t digits)</td></tr>
<tr><td colspan="2"><h2><a name="var-members"></a>
Variables</h2></td></tr>
<tr class="memitem:aef876970f5089e3fbfb00f657a612dee"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="aef876970f5089e3fbfb00f657a612dee"></a>
unsigned char&#160;</td><td class="memItemRight" valign="bottom"><b>lcd_buffer</b> [XPIXEL][YPIXEL/8]</td></tr>
<tr class="memitem:af19699a12718cf0f55945d78b7dac978"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="af19699a12718cf0f55945d78b7dac978"></a>
uint8_t *&#160;</td><td class="memItemRight" valign="bottom"><b>lcd_DOG_font</b></td></tr>
<tr class="memitem:a914da77450705ee3842b315d91147546"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a914da77450705ee3842b315d91147546"></a>
uint8_t&#160;</td><td class="memItemRight" valign="bottom"><b>lcd_linkmode</b></td></tr>
</table>
<hr/><a name="details" id="details"></a><h2>Detailed Description</h2>
<div class="textblock"><p>LCD driver module for EA DOG-S 102x64. </p>
<dl class="section date"><dt>Date:</dt><dd>10.12.2011 </dd></dl>
<dl class="section author"><dt>Author:</dt><dd>cord</dd></dl>
<p>Implements a SSP interface using following pins:</p>
<ul>
<li>P0.6 - SSEL - used as GPIO</li>
<li>P0.7 - SCK</li>
<li>P0.9 - MOSI</li>
<li>P0.2 - CD </li>
</ul>
</div><hr/><h2>Function Documentation</h2>
<a class="anchor" id="a87513b447ef5799762a37fb90180e142"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void <a class="el" href="_d_o_g_sdisplay_8h.html#a87513b447ef5799762a37fb90180e142">lcd_fill</a> </td>
          <td>(</td>
          <td class="paramtype">uint8_t&#160;</td>
          <td class="paramname"><em>xs</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">uint8_t&#160;</td>
          <td class="paramname"><em>ys</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">uint8_t&#160;</td>
          <td class="paramname"><em>xe</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">uint8_t&#160;</td>
          <td class="paramname"><em>ye</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>calculate the stop within last page </p>

</div>
</div>
</div><!-- contents -->


<hr class="footer"/><address class="footer"><small>
Generated on Sat Jul 7 2012 17:19:39 for ServoCtrl by &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.8.0
</small></address>

</body>
</html>
